package com.hx;

import com.hx.rpc.RpcProxyServer;
import com.hx.rpc.SpringConfig;
import com.hx.service.HelloServiceImpl;
import com.hx.service.IHelloService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {
        System.out.println("SERVER START ... ");
        ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);
        ((AnnotationConfigApplicationContext) context).start();
    }
}
